<div class="form">
<?php $form=$this->beginWidget('CActiveForm', array(
    'id'=>'changepassword-form',
    'enableClientValidation'=>true,
	'action'=>Yii::app()->createUrl('UserPrivatePage/UpdateEmail'),
// 'clientOptions'=>array(
// 'validateOnSubmit'=>true,
//'enableAjaxValidation'=>true,
//),
));

$this->menu=array(
array('label'=>'Change Password', 'url'=>array('changePassword')),
array('label'=>'Change Email', 'url'=>array('changeEmail')),
);
?>

<?php echo $form->errorSummary($model); ?>
<?php echo 'Username: '.$model->username?>
	<br>
	<?php echo 'Password: '.$model->password?>
	<br>
	<?php echo 'Email: '.$model->email?>
	<br>
	<?php echo 'List books uploaded'?>
	<?php echo CHtml::label('&nbsp;&nbsp;List Books Uploaded', 'id_name', 
	array(
	'style'=>'background-image: url("imagebooks/chude.png");
	background-repeat: repeat-x;
	display: block;
	font-size: 16px;
	font-weight: 150;')) ?>
	<?php
	$this->widget('zii.widgets.CListView', array(
    'dataProvider'=>$dataProvider,
    'itemView' => '/main/_clistviewitem_book',
	'template'=>'{sorter}</br>{pager}{items}</br>{pager}',/*make some example remove item, or pager*/
	));

	?>

	<?php $this->endWidget(); ?>
</div>
<!-- form -->
